
<div class="tipbox tipbox-warning mb5">
    <span class="fn-fb">友情提示:</span><br />尊敬的【{$member_miniapp.appname}】合作伙伴您好,今天是{:date('Y-m-d')}日,欢迎使用【{$web.name}】SaaS平台的《{$member_miniapp.miniapp.title}》应用。<br />
    <span class="gray fn-f12">{$member_miniapp.miniapp.describe}</span>
</div>  
<div class="titlebar">
    <div class="fn-left"><i class="iconfont icon-line-chart_icon"></i>数据总览</div>
    <div class="fn-right">
        <form class="input-group" id="form" action="{:url('manage.index/index')}" method="get">
            <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" value="{$starttime}" autocomplete="off"/>
            <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" value="{$starttime}" autocomplete="off"/>
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('manage.index/index',['time' => 1])}" class="button{$time==1?' button-violet':''}">今日</a>
        <a href="{:url('manage.index/index',['time' => 2])}" class="button{$time==2?' button-violet':''}">昨日</a>
        <a href="{:url('manage.index/index',['time' => 30])}" class="button{$time==30?' button-violet':''}">本月</a>
        <a href="{:url('manage.index/index',['time' => 60])}" class="button{$time==60?' button-violet':''}">上月</a>
    </div>
</div>  
<div class="cards">
    <div class="card blue">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$store_num}</div><div class="text">好店数量</div></div>
    </div>
    <div class="card green">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$coupon_num}</div><div class="text">优惠券数量</div></div>
    </div>
    <div class="card yellow">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$vipnum}</div><div class="text">会员数量</div></div>
    </div>
    <div class="card violet">
        <div class="fn-left"><i class="iconfont icon-my_icon"></i></div>
        <div class="fn-right fn-tar"><div class="num">{$usernum}</div><div class="text">会员数量</div></div>
    </div>
</div>
<div class="titlebar"><i class="iconfont icon-line-chart_icon"></i>会员数据</div>
<div class="cards">
    <div class="card blue white">
        <div class="card-title">买单统计 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
            <tr><td class="fn-tar">实际付款</td><td class="fn-tar">￥{$order_amount|money}</td></tr>
            <tr><td class="fn-tar">好店应收</td><td class="fn-tar">￥{$store_amount|money}</td></tr>
            <tr><td class="fn-tar">优惠金额</td><td class="fn-tar">￥{$coupon_price|money}</td></tr>
            <tr><td class="fn-tar">买单数量</td><td class="fn-tar">{$order_num}</td></tr>
            </tbody>
        </table>
    </div>
    <div class="card green white">
        <div class="card-title">优惠券统计 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
            <tr><td class="fn-tar">剩余价值</td><td class="fn-tar">￥{$coupon_user_size|money}</td></tr>
            <tr><td class="fn-tar">优惠价值</td><td class="fn-tar">￥{$coupon_user|money}</td></tr>
            <tr><td class="fn-tar">优惠券数量</td><td class="fn-tar">{$coupon_count}</td></tr>
            <tr><td class="fn-tar">失效数量</td><td class="fn-tar">{$coupon_end_count}</td></tr>
            </tbody>
        </table>
    </div>
    <div class="card yellow white">
    <div class="card-title">会员数据 <i class="iconfont icon-my_icon"></i></div>
    <table class="pure-table">
        <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
        <tbody>
        <tr><td class="fn-tar">会员金额</td><td class="fn-tar">￥{$vipamount|money}</td></tr>
        <tr><td class="fn-tar">好店会员</td><td class="fn-tar">{$store_vipnum}</td></tr>
        <tr><td class="fn-tar">平台会员</td><td class="fn-tar">{$platform_vipnum}</td></tr>
        <tr><td class="fn-tar">锁定会员</td><td class="fn-tar">{$lock_vipnum}</td></tr>
        </tbody>
    </table>
    </div>
    <div class="card violet white">
        <div class="card-title">储值活动 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
                <tr><td class="fn-tar">活动数量</td><td class="fn-tar">{$card_num}</td></tr>
                <tr><td class="fn-tar">活动价值</td><td class="fn-tar">￥{$card_amount|money}</td></tr>
                <tr><td class="fn-tar">开通数量</td><td class="fn-tar">{$carduser_num}</td></tr>
                <tr><td class="fn-tar">付款金额</td><td class="fn-tar">{$carduser_amount|money}</td></tr>
            </tbody>
        </table>
    </div>
</div>

<div class="titlebar"><i class="iconfont icon-line-chart_icon"></i>财务数据</div>
<div class="cards">
    <div class="card blue white">
        <div class="card-title">帐户管理 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
            <tr><td class="fn-tar">流水入账</td><td class="fn-tar">￥{$receipts|money}</td></tr>
            <tr><td class="fn-tar">流水出账	</td><td class="fn-tar">￥{$expenses|money}</td></tr>
            <tr><td class="fn-tar">帐号余额</td><td class="fn-tar">{$money/100|money}</td></tr>
            <tr><td class="fn-tar">积分余额</td><td class="fn-tar">{$points}</td></tr>
            </tbody>
        </table>
    </div>
    <div class="card green white">
        <div class="card-title">提现管理 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
            <tr><td class="fn-tar">申请提现</td><td class="fn-tar">￥{$now_money|money}</td></tr>
            <tr><td class="fn-tar">通过提现</td><td class="fn-tar">￥{$pass_money|money}</td></tr>
            <tr><td class="fn-tar">退回提现</td><td class="fn-tar">￥{$back_money|money}</td></tr>
            <tr><td class="fn-tar">提现次数</td><td class="fn-tar">{$cash_num}</td></tr>
            </tbody>
        </table>
    </div>
    <div class="card yellow white">
        <div class="card-title">采购基金 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
            <tr><td class="fn-tar">采购基金</td><td class="fn-tar">￥{$fund.balance|money}</td></tr>
            <tr><td class="fn-tar">基金补贴</td><td class="fn-tar">￥{$fund.subsidize|money}</td></tr>
            <tr><td class="fn-tar">补贴优惠券</td><td class="fn-tar">{$fund_coupon_num}</td></tr>
            <tr><td class="fn-tar">补贴单数</td><td class="fn-tar">{$fund.subsidize_num}</td></tr>
            </tbody>
        </table>
    </div>
    <div class="card violet white">
        <div class="card-title">分账统计 <i class="iconfont icon-my_icon"></i></div>
        <table class="pure-table">
            <thead><tr><th class="w100 fn-tar">名称</th><th class="fn-tar">合计</th></tr></thead>
            <tbody>
                <tr><td class="fn-tar">分账队列</td><td class="fn-tar">￥{$amount_quree/100|money}</td></tr>
                <tr><td class="fn-tar">分账成功</td><td class="fn-tar">￥{$amount_success/100|money}</td></tr>
                <tr><td class="fn-tar">分账失败</td><td class="fn-tar">{$amount_fail/100|money}</td></tr>
                <tr><td class="fn-tar">分账次数</td><td class="fn-tar">{$quree_num}</td></tr>
            </tbody>
        </table>
    </div>
</div>

<div class="fn-right m10">
    Powered by  <a href="//uc.sapixx.com" target="_blank">{$member_miniapp.miniapp.title} V{$member_miniapp.miniapp.version}</a>
    © 2017-{:date('Y')} <a href="//www.sapixx.com" target="_blank">{$web.name} Inc.</a>
</div>
<script type="text/javascript">
Do('base','form','layer','tip','date',function () {
    $('#form').isForm({'types':1});
})
</script>